// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueResource from 'vue-resource'
import AMap from 'vue-amap'
import iView from 'iview'

Vue.use(AMap)
Vue.use(iView)
Vue.use(VueResource)
Vue.config.productionTip = false

/* eslint-disable no-new */
AMap.initAMapApiLoader({
  key: 'your amap key',
  // 项目入口文件 初始化脚本 项目用到的服务插件都提前加载入脚本中
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor']
})

new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
